/**
 * 判断是否为手机端
 */
export const isMobile = () => {
    let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
    return flag;
};

/**
 * 判断是否为对象
 */
export const isObject = (value) => Object.prototype.toString.call(value) === '[object Object]';

/**
 * 创建history
 */
export const createHistory = () => import('history/createBrowserHistory');